package app.vendorportal.api.data.request;

import app.vendorportal.api.data.EDI856VendorPickTicket;
import app.vendorportal.api.data.FeedType;

import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;

/**
 * @author Raymond
 */
@XmlRootElement(name = "vendor-pick-ticket-request")
@XmlAccessorType(XmlAccessType.FIELD)
public class EDI856VendorPickTicketRequest {

    @NotNull(message = "vendor pick tickets is required")
    @XmlElementWrapper(name = "vendor-picktickets")
    @XmlElement(name = "vendor-pickticket")
    private List<EDI856VendorPickTicket> vendorPickTickets;

    @XmlElement(name = "update-type")
    private FeedType updateType;

    public List<EDI856VendorPickTicket> getVendorPickTickets() {
        return vendorPickTickets;
    }

    public void setVendorPickTickets(List<EDI856VendorPickTicket> vendorPickTickets) {
        this.vendorPickTickets = vendorPickTickets;
    }

    public FeedType getUpdateType() {
        return updateType;
    }

    public void setUpdateType(FeedType updateType) {
        this.updateType = updateType;
    }
}
